define(
	'upLoadList',
	['common'],
function(utils){
	var upLoadList = {
		getScrollTop:function(){
			var scrollTop = 0; 
		    if (document.documentElement && document.documentElement.scrollTop) { 
		    	scrollTop = document.documentElement.scrollTop; 
		    } 
		    else if (document.body) { 
		    	scrollTop = document.body.scrollTop; 
		    } 
		    return Math.ceil(scrollTop); 
		},
		getClientHeight:function(){
			var clientHeight = 0;
		    if (document.body.clientHeight && document.documentElement.clientHeight) { 
		    	clientHeight = Math.min(document.body.clientHeight, document.documentElement.clientHeight); 
		    } 
		    else { 
		    	clientHeight = Math.max(document.body.clientHeight, document.documentElement.clientHeight); 
		    } 
		    return clientHeight; 
		},
		getScrollHeight:function(){
			return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
		},
		ajax:function(url,data,suc){
			utils.ajax(url,data,'POST',function(res){
				suc(res)
			},function(){
				$('#pullDown3').show();
			},function(){
				$('#pullDown3').hide();
			},function(){
				$('#pullDown3').hide();
                $('#container').hide();
                $('.errorRefresh').show();
			})
		}
	}
	return upLoadList;
})